package com.vhall.component.service.rbac;


import com.vhall.component.entity.rbac.UserGroupEntity;
import com.vhall.component.entity.rbac.vo.GroupAddUserReqVO;
import com.vhall.component.entity.rbac.vo.GroupDeleteUserReqVO;

/**
 * @author dalong
 * @date 2021-05-10 18:14
 */
public interface RbacUserGroupService {

    /**
     * 获取用户分组信息
     *
     * @param accountId 账号ID
     * @param appId     appId
     * @param status    状态
     * @return
     */
    UserGroupEntity selectOne(String accountId, String appId, Integer status);

    /**
     * 添加用户到指定组
     *
     * @param reqVO
     * @return
     */
    boolean addUser(GroupAddUserReqVO reqVO);

    /**
     * 删除组的指定用户
     *
     * @param reqVO
     * @return
     */
    boolean deleteUser(GroupDeleteUserReqVO reqVO);
}
